package com.mathassistant.client.service;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.mathassistant.shared.TopicDTO;

@RemoteServiceRelativePath("topic")
public interface TopicService extends RemoteService {

	void createTopic(TopicDTO topic);

	ArrayList<TopicDTO> getTopics();
	
	ArrayList<TopicDTO> getTopic(String type);
	
	ArrayList<TopicDTO> getTopics(String area, String contentType) throws Exception;
	
	void updateTopic(String idTopic,String changeContent);
	
	void updateTopic(TopicDTO topicDTO);
	
	void deleteTopic(TopicDTO topicDTO);
	
	void deleteTopic(String idTopic);
}
